package com.base.cn.platform.os.service.manage.op.coupon;

import com.base.cn.platform.os.entity.op.coupon.OpCouponShop;
import com.base.cn.platform.os.service.FeignAuthConfig;
import com.base.cn.platform.os.service.manage.BaseService;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.math.BigDecimal;
import java.util.List;

/**
 * 优惠券关联的商品接口
 *
 * @author s.li
 * @date 2019/05/14
 */
@FeignClient(name = BaseService.appName , configuration = FeignAuthConfig.class)
public interface OpCouponShopService extends BaseService {

    /**
     * 获取载一个优惠券的商品数据
     * @param couponId
     * @return
     */
    @RequestMapping(contextPath + "/op/showCouponShopData")
    List<OpCouponShop> showCouponShopData(@RequestParam("couponId") BigDecimal couponId);
}
